<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
	    <meta charset="utf-8">
	    <meta http-equiv="X-UA-Compatible" content="IE=edge">
	    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
	    <meta name="description" content="">
	    <meta name="author" content="">
	    <meta name="keyword" content="">
	    <link rel="shortcut icon" href="img/favicon.png">	
	    <title></title>	
	    <!-- Icons -->
	    <link href="${pageContext.request.contextPath}/uicore/css/font-awesome.min.css" rel="stylesheet">
	    <link href="${pageContext.request.contextPath}/uicore/css/simple-line-icons.css" rel="stylesheet">	
	    <!-- Main styles for this application -->
	    <link href="${pageContext.request.contextPath}/uicore/css/style.css" rel="stylesheet">	
	    
	    <!-- jquery css -->
	    <link href="${pageContext.request.contextPath}/jquerycss/jquery.dataTables.min.css" rel="stylesheet">	
	    
	</head>

	<body class="app header-fixed sidebar-fixed aside-menu-fixed aside-menu-hidden">
	    <header class="app-header navbar">
	        <button class="navbar-toggler mobile-sidebar-toggler hidden-lg-up" type="button">☰</button>
	        <a class="navbar-brand" href="#"></a>
	        <ul class="nav navbar-nav hidden-md-down">
	            <li class="nav-item">
	                <a class="nav-link navbar-toggler sidebar-toggler" href="#">☰</a>
	            </li>	
	            <li class="nav-item px-1">
	                <a class="nav-link" href="#">Dashboard</a>
	            </li>
	            <li class="nav-item px-1">
	                <a class="nav-link" href="#">Users</a>
	            </li>
	            <li class="nav-item px-1">
	                <a class="nav-link" href="#">Settings</a>
	            </li>
	        </ul>
	        <ul class="nav navbar-nav ml-auto">
	            <li class="nav-item hidden-md-down">
	                <a class="nav-link" href="#"><i class="icon-bell"></i><span class="badge badge-pill badge-danger">5</span></a>
	            </li>
	            <li class="nav-item hidden-md-down">
	                <a class="nav-link" href="#"><i class="icon-list"></i></a>
	            </li>
	            <li class="nav-item hidden-md-down">
	                <a class="nav-link" href="#"><i class="icon-location-pin"></i></a>
	            </li>
	            <li class="nav-item dropdown">
	                <a class="nav-link dropdown-toggle nav-link" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
	                    <img src="${pageContext.request.contextPath}/uicore/img/avatars/6.jpg" class="img-avatar" alt="admin@bootstrapmaster.com">
	                    <span class="hidden-md-down">admin</span>
	                </a>
	                <div class="dropdown-menu dropdown-menu-right">
	
	                    <div class="dropdown-header text-center">
	                        <strong>Account</strong>
	                    </div>
	
	                    <a class="dropdown-item" href="#"><i class="fa fa-bell-o"></i> Updates<span class="badge badge-info">42</span></a>
	                    <a class="dropdown-item" href="#"><i class="fa fa-envelope-o"></i> Messages<span class="badge badge-success">42</span></a>
	                    <a class="dropdown-item" href="#"><i class="fa fa-tasks"></i> Tasks<span class="badge badge-danger">42</span></a>
	                    <a class="dropdown-item" href="#"><i class="fa fa-comments"></i> Comments<span class="badge badge-warning">42</span></a>
	
	                    <div class="dropdown-header text-center">
	                        <strong>Settings</strong>
	                    </div>
	
	                    <a class="dropdown-item" href="#"><i class="fa fa-user"></i> Profile</a>
	                    <a class="dropdown-item" href="#"><i class="fa fa-wrench"></i> Settings</a>
	                    <a class="dropdown-item" href="#"><i class="fa fa-usd"></i> Payments<span class="badge badge-default">42</span></a>
	                    <a class="dropdown-item" href="#"><i class="fa fa-file"></i> Projects<span class="badge badge-primary">42</span></a>
	                    <div class="divider"></div>
	                    <a class="dropdown-item" href="#"><i class="fa fa-shield"></i> Lock Account</a>
	                    <a class="dropdown-item" href="#"><i class="fa fa-lock"></i> Logout</a>
	                </div>
	            </li>
	            <li class="nav-item hidden-md-down">
	                <a class="nav-link navbar-toggler aside-menu-toggler" href="#">☰</a>
	            </li>
	
	        </ul>
	    </header>
	
	    <div class="app-body">
	        <div class="sidebar">
	            <nav class="sidebar-nav">
	                <ul class="nav">
	                    <li class="nav-item">
	                        <a class="nav-link" href="index.html"><i class="icon-speedometer"></i> Dashboard <span class="badge badge-info">NEW</span></a>
	                    </li>	
	                    <li class="nav-title">
	                        UI Elements
	                    </li>
	                    <li class="nav-item nav-dropdown">
	                        <a class="nav-link nav-dropdown-toggle" href="#"><i class="icon-puzzle"></i> Components</a>
	                        <ul class="nav-dropdown-items">
	                            <li class="nav-item">
	                                <a class="nav-link" href="components-buttons.html"><i class="icon-puzzle"></i> Buttons</a>
	                            </li>
	                            <li class="nav-item">
	                                <a class="nav-link" href="components-social-buttons.html"><i class="icon-puzzle"></i> Social Buttons</a>
	                            </li>
	                            <li class="nav-item">
	                                <a class="nav-link" href="components-cards.html"><i class="icon-puzzle"></i> Cards</a>
	                            </li>
	                            <li class="nav-item">
	                                <a class="nav-link" href="components-forms.html"><i class="icon-puzzle"></i> Forms</a>
	                            </li>
	                            <li class="nav-item">
	                                <a class="nav-link" href="components-modals.html"><i class="icon-puzzle"></i> Modals</a>
	                            </li>
	                            <li class="nav-item">
	                                <a class="nav-link" href="components-switches.html"><i class="icon-puzzle"></i> Switches</a>
	                            </li>
	                            <li class="nav-item">
	                                <a class="nav-link" href="components-tables.html"><i class="icon-puzzle"></i> Tables</a>
	                            </li>
	                            <li class="nav-item">
	                                <a class="nav-link" href="components-tabs.html"><i class="icon-puzzle"></i> Tabs</a>
	                            </li>
	                        </ul>
	                    </li>
	                    <li class="nav-item nav-dropdown">
	                        <a class="nav-link nav-dropdown-toggle" href="#"><i class="icon-star"></i> Icons</a>
	                        <ul class="nav-dropdown-items">
	                            <li class="nav-item">
	                                <a class="nav-link" href="icons-font-awesome.html"><i class="icon-star"></i> Font Awesome</a>
	                            </li>
	                            <li class="nav-item">
	                                <a class="nav-link" href="icons-simple-line-icons.html"><i class="icon-star"></i> Simple Line Icons</a>
	                            </li>
	                        </ul>
	                    </li>
	                    <li class="nav-item">
	                        <a class="nav-link" href="widgets.html"><i class="icon-calculator"></i> Widgets <span class="badge badge-info">NEW</span></a>
	                    </li>
	                    <li class="nav-item">
	                        <a class="nav-link" href="charts.html"><i class="icon-pie-chart"></i> Charts</a>
	                    </li>
	                    <li class="divider"></li>
	                    <li class="nav-title">
	                        Extras
	                    </li>
	                    <li class="nav-item nav-dropdown">
	                        <a class="nav-link nav-dropdown-toggle" href="#"><i class="icon-star"></i> Pages</a>
	                        <ul class="nav-dropdown-items">
	                            <li class="nav-item">
	                                <a class="nav-link" href="pages-login.html" target="_top"><i class="icon-star"></i> Login</a>
	                            </li>
	                            <li class="nav-item">
	                                <a class="nav-link" href="pages-register.html" target="_top"><i class="icon-star"></i> Register</a>
	                            </li>
	                            <li class="nav-item">
	                                <a class="nav-link" href="pages-404.html" target="_top"><i class="icon-star"></i> Error 404</a>
	                            </li>
	                            <li class="nav-item">
	                                <a class="nav-link" href="pages-500.html" target="_top"><i class="icon-star"></i> Error 500</a>
	                            </li>
	                        </ul>
	                    </li>					
						<!-- user defined Started -->
	                    <li class="nav-item nav-dropdown">
	                        <a class="nav-link nav-dropdown-toggle" href="#"><i class="icon-puzzle"></i> 系统管理 </a>
	                        <ul class="nav-dropdown-items">
	                            <li class="nav-item">
	                                <a class="nav-link" href="coreUser.jsp"><i class="icon-puzzle"></i> 组织管理 </a>
	                            </li>
	                            <li class="nav-item">
	                                <a class="nav-link" href="coreUser.jsp"><i class="icon-puzzle"></i> 人员管理 </a>
	                            </li>
	                            <li class="nav-item">
	                                <a class="nav-link" href="components-social-buttons.html"><i class="icon-puzzle"></i> Social Buttons</a>
	                            </li>
	                        </ul>
	                    </li>
						<!-- user defined end -->						
	                </ul>
	            </nav>
	        </div>
	
	        <!-- Main content -->
	        <main class="main">	
	            <!-- Breadcrumb -->
	            <ol class="breadcrumb">
	                <li class="breadcrumb-item">Home</li>
	                <li class="breadcrumb-item"><a href="#">Admin</a>
	                </li>
	                <li class="breadcrumb-item active">Dashboard</li>	
	                <!-- Breadcrumb Menu-->
	                <li class="breadcrumb-menu hidden-md-down">
	                    <div class="btn-group" role="group" aria-label="Button group with nested dropdown">
	                        <a class="btn btn-secondary" href="#"><i class="icon-speech"></i></a>
	                        <a class="btn btn-secondary" href="./"><i class="icon-graph"></i> &nbsp;Dashboard</a>
	                        <a class="btn btn-secondary" href="#"><i class="icon-settings"></i> &nbsp;Settings</a>
	                    </div>
	                </li>
	            </ol>	
	            <div class="container-fluid">
	                <div class="animated fadeIn">	                
	                    <div class="row">
	                    	<!-- user search qualification -->
	                    	<div class="col-lg-12">
	                    		 <div class="card">
	                    		 	<div class="card-header">
	                                    <i class="fa fa-align-justify"></i> 搜索条件
	                                </div>
	                                <div class="card-block">	                                
	                                    <form id="rolesDetailForm" action="" method="post" class="form-horizontal ">
		                                	<div class="form-group row">
			                                	<div class="col-md-2">
		                                        	<span class="input-group-btn">
		                                            	<input type="text" id="rolesName" name="rolesName" class="form-control" placeholder=" 角色名 ">
		                                            </span>
			                                	</div>
			                                	<div class="col-md-2">
		                                        	<span class="input-group-btn">
		                                            	<input type="text" id="rolesId" name="rolesId" class="form-control" placeholder=" 角色ID ">
		                                            </span>
			                                	</div>
			                                	<!-- <div class="col-md-2">
		                                        	<span class="input-group-btn">
		                                            	<input type="text" id="input1-group1" name="input1-group1" class="form-control" placeholder=" 姓 名 ">
		                                            </span>
			                                	</div> -->
			                                	<div class="col-md-2">
			                                    	<button type="button" class="btn btn-primary"  onClick="javascript:addRoles()" ><i class="fa fa-search"></i> 保存 </button>
			                                	</div>
		                                	</div>
	                                	</form>
	                                </div>
	                                <div class="card-block">	
	                                	<div class='box-content box-no-padding'>
											<div class='responsive-table'>
												<div class='scrollable-area'>
													<table class="display" id="example" style="width: 100%;">
														 <thead>
														 	<tr>
												                <th>id</th>
												                <th>角色名称</th>
												                <th>角色Id</th>
												                <th>创建时间</th>
												                <th>状态</th>
												                <th>操作</th>
												            </tr>
														 </thead>
														 <tbody></tbody>
												         <tfoot>
												        	<tr>
												                <th>id</th>
												                <th>角色名称</th>
												                <th>角色Id</th>
												                <th>创建时间</th>
												                <th>状态</th>
												                <th>操作</th>
												            </tr>
											            </tfoot>
													</table>
												</div>
											</div>
										</div>
	                                </div>
	                    		 </div>
	                    	</div>
	                    	
	                        <!-- organization list table -->
		                    <div class="col-lg-10">
		                    </div>
	                    </div>
	                    <!--/.row-->
	                    <!-- <aside class="aside-menu">
	                    	<div class="tab-content">
	                    		user edit panels....
	                    	</div>
	                    </aside> -->
	                </div>
	            </div>
	            <!-- /.conainer-fluid -->
	        </main>
	        <!--Main Right Tab panes Start -->
	        <aside class="aside-menu">
	            <ul class="nav nav-tabs" role="tablist">
	                <li class="nav-item">
	                    <a class="nav-link active" data-toggle="tab" href="#timeline" role="tab"><i class="icon-list"></i></a>
	                </li>
	                <li class="nav-item">
	                    <a class="nav-link" data-toggle="tab" href="#messages" role="tab"><i class="icon-speech"></i></a>
	                </li>
	                <li class="nav-item">
	                    <a class="nav-link" data-toggle="tab" href="#settings" role="tab"><i class="icon-settings"></i></a>
	                </li>
	            </ul>	
	            <div class="tab-content">
	                <div class="tab-pane active" id="timeline" role="tabpanel">
	                    <div class="callout m-0 py-h text-muted text-center bg-faded text-uppercase">
	                        <small><b>Today</b>
	                        </small>
	                    </div>
	                    <hr class="transparent mx-1 my-0">
	                    <div class="callout callout-warning m-0 py-1">
	                        <div class="avatar float-right">
	                            <img src="${pageContext.request.contextPath}/uicore/img/avatars/7.jpg" class="img-avatar" alt="admin@bootstrapmaster.com">
	                        </div>
	                        <div>Meeting with
	                            <strong>Lucas</strong>
	                        </div>
	                        <small class="text-muted mr-1"><i class="icon-calendar"></i>&nbsp; 1 - 3pm</small>
	                        <small class="text-muted"><i class="icon-location-pin"></i>&nbsp; Palo Alto, CA</small>
	                    </div>
	                    <hr class="mx-1 my-0">
	                    <div class="callout callout-info m-0 py-1">
	                        <div class="avatar float-right">
	                            <img src="${pageContext.request.contextPath}/uicore/img/avatars/4.jpg" class="img-avatar" alt="admin@bootstrapmaster.com">
	                        </div>
	                        <div>Skype with
	                            <strong>Megan</strong>
	                        </div>
	                        <small class="text-muted mr-1"><i class="icon-calendar"></i>&nbsp; 4 - 5pm</small>
	                        <small class="text-muted"><i class="icon-social-skype"></i>&nbsp; On-line</small>
	                    </div>
	                    <hr class="transparent mx-1 my-0">
	                    <div class="callout m-0 py-h text-muted text-center bg-faded text-uppercase">
	                        <small><b>Tomorrow</b>
	                        </small>
	                    </div>
	                    <hr class="transparent mx-1 my-0">
	                    <div class="callout callout-danger m-0 py-1">
	                        <div>New UI Project -
	                            <strong>deadline</strong>
	                        </div>
	                        <small class="text-muted mr-1"><i class="icon-calendar"></i>&nbsp; 10 - 11pm</small>
	                        <small class="text-muted"><i class="icon-home"></i>&nbsp; creativeLabs HQ</small>
	                        <div class="avatars-stack mt-h">
	                            <div class="avatar avatar-xs">
	                                <img src="${pageContext.request.contextPath}/uicore/img/avatars/2.jpg" class="img-avatar" alt="admin@bootstrapmaster.com">
	                            </div>
	                            <div class="avatar avatar-xs">
	                                <img src="${pageContext.request.contextPath}/uicore/img/avatars/3.jpg" class="img-avatar" alt="admin@bootstrapmaster.com">
	                            </div>
	                            <div class="avatar avatar-xs">
	                                <img src="${pageContext.request.contextPath}/uicore/img/avatars/4.jpg" class="img-avatar" alt="admin@bootstrapmaster.com">
	                            </div>
	                            <div class="avatar avatar-xs">
	                                <img src="${pageContext.request.contextPath}/uicore/img/avatars/5.jpg" class="img-avatar" alt="admin@bootstrapmaster.com">
	                            </div>
	                            <div class="avatar avatar-xs">
	                                <img src="${pageContext.request.contextPath}/uicore/img/avatars/6.jpg" class="img-avatar" alt="admin@bootstrapmaster.com">
	                            </div>
	                        </div>
	                    </div>
	                    <hr class="mx-1 my-0">
	                    <div class="callout callout-success m-0 py-1">
	                        <div>
	                            <strong>#10 Startups.Garden</strong>Meetup</div>
	                        <small class="text-muted mr-1"><i class="icon-calendar"></i>&nbsp; 1 - 3pm</small>
	                        <small class="text-muted"><i class="icon-location-pin"></i>&nbsp; Palo Alto, CA</small>
	                    </div>
	                    <hr class="mx-1 my-0">
	                    <div class="callout callout-primary m-0 py-1">
	                        <div>
	                            <strong>Team meeting</strong>
	                        </div>
	                        <small class="text-muted mr-1"><i class="icon-calendar"></i>&nbsp; 4 - 6pm</small>
	                        <small class="text-muted"><i class="icon-home"></i>&nbsp; creativeLabs HQ</small>
	                        <div class="avatars-stack mt-h">
	                            <div class="avatar avatar-xs">
	                                <img src="${pageContext.request.contextPath}/uicore/img/avatars/2.jpg" class="img-avatar" alt="admin@bootstrapmaster.com">
	                            </div>
	                            <div class="avatar avatar-xs">
	                                <img src="${pageContext.request.contextPath}/uicore/img/avatars/3.jpg" class="img-avatar" alt="admin@bootstrapmaster.com">
	                            </div>
	                            <div class="avatar avatar-xs">
	                                <img src="${pageContext.request.contextPath}/uicore/img/avatars/4.jpg" class="img-avatar" alt="admin@bootstrapmaster.com">
	                            </div>
	                            <div class="avatar avatar-xs">
	                                <img src="${pageContext.request.contextPath}/uicore/img/avatars/5.jpg" class="img-avatar" alt="admin@bootstrapmaster.com">
	                            </div>
	                            <div class="avatar avatar-xs">
	                                <img src="${pageContext.request.contextPath}/uicore/img/avatars/6.jpg" class="img-avatar" alt="admin@bootstrapmaster.com">
	                            </div>
	                            <div class="avatar avatar-xs">
	                                <img src="${pageContext.request.contextPath}/uicore/img/avatars/7.jpg" class="img-avatar" alt="admin@bootstrapmaster.com">
	                            </div>
	                            <div class="avatar avatar-xs">
	                                <img src="${pageContext.request.contextPath}/uicore/img/avatars/8.jpg" class="img-avatar" alt="admin@bootstrapmaster.com">
	                            </div>
	                        </div>
	                    </div>
	                    <hr class="mx-1 my-0">
	                </div>
	                <div class="tab-pane p-1" id="messages" role="tabpanel">
	                    <div class="message">
	                        <div class="py-1 pb-3 mr-1 float-left">
	                            <div class="avatar">
	                                <img src="${pageContext.request.contextPath}/uicore/img/avatars/7.jpg" class="img-avatar" alt="admin@bootstrapmaster.com">
	                                <span class="avatar-status badge-success"></span>
	                            </div>
	                        </div>
	                        <div>
	                            <small class="text-muted">Lukasz Holeczek</small>
	                            <small class="text-muted float-right mt-q">1:52 PM</small>
	                        </div>
	                        <div class="text-truncate font-weight-bold">Lorem ipsum dolor sit amet</div>
	                        <small class="text-muted">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt...</small>
	                    </div>
	                    <hr>
	                    <div class="message">
	                        <div class="py-1 pb-3 mr-1 float-left">
	                            <div class="avatar">
	                                <img src="${pageContext.request.contextPath}/uicore/img/avatars/7.jpg" class="img-avatar" alt="admin@bootstrapmaster.com">
	                                <span class="avatar-status badge-success"></span>
	                            </div>
	                        </div>
	                        <div>
	                            <small class="text-muted">Lukasz Holeczek</small>
	                            <small class="text-muted float-right mt-q">1:52 PM</small>
	                        </div>
	                        <div class="text-truncate font-weight-bold">Lorem ipsum dolor sit amet</div>
	                        <small class="text-muted">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt...</small>
	                    </div>
	                    <hr>
	                    <div class="message">
	                        <div class="py-1 pb-3 mr-1 float-left">
	                            <div class="avatar">
	                                <img src="${pageContext.request.contextPath}/uicore/img/avatars/7.jpg" class="img-avatar" alt="admin@bootstrapmaster.com">
	                                <span class="avatar-status badge-success"></span>
	                            </div>
	                        </div>
	                        <div>
	                            <small class="text-muted">Lukasz Holeczek</small>
	                            <small class="text-muted float-right mt-q">1:52 PM</small>
	                        </div>
	                        <div class="text-truncate font-weight-bold">Lorem ipsum dolor sit amet</div>
	                        <small class="text-muted">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt...</small>
	                    </div>
	                    <hr>
	                    <div class="message">
	                        <div class="py-1 pb-3 mr-1 float-left">
	                            <div class="avatar">
	                                <img src="${pageContext.request.contextPath}/uicore/img/avatars/7.jpg" class="img-avatar" alt="admin@bootstrapmaster.com">
	                                <span class="avatar-status badge-success"></span>
	                            </div>
	                        </div>
	                        <div>
	                            <small class="text-muted">Lukasz Holeczek</small>
	                            <small class="text-muted float-right mt-q">1:52 PM</small>
	                        </div>
	                        <div class="text-truncate font-weight-bold">Lorem ipsum dolor sit amet</div>
	                        <small class="text-muted">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt...</small>
	                    </div>
	                    <hr>
	                    <div class="message">
	                        <div class="py-1 pb-3 mr-1 float-left">
	                            <div class="avatar">
	                                <img src="${pageContext.request.contextPath}/uicore/img/avatars/7.jpg" class="img-avatar" alt="admin@bootstrapmaster.com">
	                                <span class="avatar-status badge-success"></span>
	                            </div>
	                        </div>
	                        <div>
	                            <small class="text-muted">Lukasz Holeczek</small>
	                            <small class="text-muted float-right mt-q">1:52 PM</small>
	                        </div>
	                        <div class="text-truncate font-weight-bold">Lorem ipsum dolor sit amet</div>
	                        <small class="text-muted">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt...</small>
	                    </div>
	                </div>
	                <div class="tab-pane p-1" id="settings" role="tabpanel">
	                    <h6>Settings</h6>
	
	                    <div class="aside-options">
	                        <div class="clearfix mt-2">
	                            <small><b>Option 1</b>
	                            </small>
	                            <label class="switch switch-text switch-pill switch-success switch-sm float-right">
	                                <input type="checkbox" class="switch-input" checked="">
	                                <span class="switch-label" data-on="On" data-off="Off"></span>
	                                <span class="switch-handle"></span>
	                            </label>
	                        </div>
	                        <div>
	                            <small class="text-muted">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</small>
	                        </div>
	                    </div>
	
	                    <div class="aside-options">
	                        <div class="clearfix mt-1">
	                            <small><b>Option 2</b>
	                            </small>
	                            <label class="switch switch-text switch-pill switch-success switch-sm float-right">
	                                <input type="checkbox" class="switch-input">
	                                <span class="switch-label" data-on="On" data-off="Off"></span>
	                                <span class="switch-handle"></span>
	                            </label>
	                        </div>
	                        <div>
	                            <small class="text-muted">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</small>
	                        </div>
	                    </div>
	
	                    <div class="aside-options">
	                        <div class="clearfix mt-1">
	                            <small><b>Option 3</b>
	                            </small>
	                            <label class="switch switch-text switch-pill switch-success switch-sm float-right">
	                                <input type="checkbox" class="switch-input">
	                                <span class="switch-label" data-on="On" data-off="Off"></span>
	                                <span class="switch-handle"></span>
	                            </label>
	                        </div>
	                    </div>
	
	                    <div class="aside-options">
	                        <div class="clearfix mt-1">
	                            <small><b>Option 4</b>
	                            </small>
	                            <label class="switch switch-text switch-pill switch-success switch-sm float-right">
	                                <input type="checkbox" class="switch-input" checked="">
	                                <span class="switch-label" data-on="On" data-off="Off"></span>
	                                <span class="switch-handle"></span>
	                            </label>
	                        </div>
	                    </div>
	
	                    <hr>
	                    <h6>System Utilization</h6>	
	                    <div class="text-uppercase mb-q mt-2">
	                        <small><b>CPU Usage</b>
	                        </small>
	                    </div>
	                    <div class="progress progress-xs">
	                        <div class="progress-bar bg-info" role="progressbar" style="width: 25%" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
	                    </div>
	                    <small class="text-muted">348 Processes. 1/4 Cores.</small>	
	                    <div class="text-uppercase mb-q mt-h">
	                        <small><b>Memory Usage</b>
	                        </small>
	                    </div>
	                    <div class="progress progress-xs">
	                        <div class="progress-bar bg-warning" role="progressbar" style="width: 70%" aria-valuenow="70" aria-valuemin="0" aria-valuemax="100"></div>
	                    </div>
	                    <small class="text-muted">11444GB/16384MB</small>	
	                    <div class="text-uppercase mb-q mt-h">
	                        <small><b>SSD 1 Usage</b>
	                        </small>
	                    </div>
	                    <div class="progress progress-xs">
	                        <div class="progress-bar bg-danger" role="progressbar" style="width: 95%" aria-valuenow="95" aria-valuemin="0" aria-valuemax="100"></div>
	                    </div>
	                    <small class="text-muted">243GB/256GB</small>	
	                    <div class="text-uppercase mb-q mt-h">
	                        <small><b>SSD 2 Usage</b>
	                        </small>
	                    </div>
	                    <div class="progress progress-xs">
	                        <div class="progress-bar bg-success" role="progressbar" style="width: 10%" aria-valuenow="10" aria-valuemin="0" aria-valuemax="100"></div>
	                    </div>
	                    <small class="text-muted">25GB/256GB</small>
	                </div>
	            </div>
	            <!--Main Right Tab panes end -->
	        </aside>		
	    </div>
	    <footer class="app-footer">
			Copyright &copy; 2017.Company name All rights reserved.<a target="_blank" href="http://www.mycodes.net/">&#x7F51;&#x9875;&#x6A21;&#x677F;</a>    
		</footer>
		
		<script src="${pageContext.request.contextPath}/js/jquery.js"></script>
	    <!-- Bootstrap and necessary plugins -->
		<script src="${pageContext.request.contextPath}/uicore/assets/js/libs/tether.min.js"></script>
		<script src="${pageContext.request.contextPath}/uicore/assets/js/libs/bootstrap.min.js"></script>
		<script src="${pageContext.request.contextPath}/uicore/assets/js/libs/pace.min.js"></script>
		<!-- Plugins and scripts required by all views -->
		<script src="${pageContext.request.contextPath}/uicore/assets/js/libs/Chart.min.js"></script>	
	    <!-- GenesisUI main scripts -->	
	    <script src="${pageContext.request.contextPath}/uicore/js/app.js"></script>		
	    
	    <!-- jquery datatable -->
	    <script src="${pageContext.request.contextPath}/jqueryjs/jquery.dataTables.min.js"></script>
	    
	    <script >	    	
			$(document).ready(function() {
			    // Setup - add a text input to each footer cell		
			    $('#example tfoot th').eq(0).html( "<input id=\"search" + 0 + "\" type=\"text\" placeholder=\"Search\" />");	
			    $('#example tfoot th').eq(1).html( "<input id=\"search" + 1 + "\" type=\"text\" placeholder=\"Search\" />");
			    $('#example tfoot th').eq(2).html( "<input id=\"search" + 2 + "\" type=\"text\" placeholder=\"Search\" />");
			    $('#example tfoot th').eq(3).html( "<input id=\"search" + 3 + "\" type=\"text\" placeholder=\"Search\" />");
			    $('#example tfoot th').eq(4).html( "<input id=\"search" + 4 + "\" type=\"text\" placeholder=\"Search\" />");
			    $('#example tfoot th').eq(5).html( "<input id=\"search" + 5 + "\" type=\"text\" placeholder=\"Search\" />");
			   
			    var table = $('#example').DataTable({
			    	language: {
		                "processing": "数据加载中，请稍等...", // 当前页显示多少条
		                "lengthMenu": "显示 _MENU_ 条记录", // _START_（当前页的第一条的序号） ,_END_（当前页的最后一条的序号）,_TOTAL_（筛选后的总件数）,
		                "info": "显示页 _PAGE_ / _PAGES_",// _MAX_(总件数),_PAGE_(当前页号),_PAGES_（总页数）
		                "emptyTable": "未查询到数据...",// 没有数据的显示（可选），如果没指定，会用zeroRecords的内容
		                "zeroRecords": "未查询到匹配的数据",// 筛选后，没有数据的表示信息，注意emptyTable优先级更高
		                "paginate": {
		                    "first": "首页",
		                    "last": "末页",
		                    "next": "下一页",
		                    "previous": "上一页"
		                },
		                "loadingRecords": "加载中 - 请等待..." // Client-Side用，Server-Side不用这个属性
		            },
		            autoWIdth:false,
		           	processing: true,  //隐藏加载提示,自行处理  
					serverSide: true,  //启用服务器端分页  
					searching: true,  //禁用原生搜索  
					search: { "搜索": ""  },
					rowId: 'staffId',
                    pageLength:10,
		            ajax: function (data, callback, settings) {   //封装请求参数  
                        var param = {};  
		                param.opportunityNO ="hellow" ;//$('#txtSearch').val();
                        param.keyword = data.search.value;  
                        param.search0 = $('#search0').val();
                        param.search1 = $('#search1').val();
                        param.search2 = $('#search2').val();
                        param.search3 = $('#search3').val();
                        param.search4 = $('#search4').val();
                        param.search5 = $('#search5').val();
                        param.limit = data.length;//页面显示记录条数，在页面显示每页显示多少项的时候  
                        param.start = data.start;//开始的记录序号  
                        param.page = (data.start / data.length)+1;//当前页码
                        $.ajax({  
                            type: "POST",  
                            url: "${pageContext.request.contextPath}/role/rolesGet.action",
                            cache: false,  //禁用缓存  
                            data: param,  //传入组装的参数  
                            dataType: "json",  
                            success: function (result) {
                                console.log(data.length +"-");   //封装返回数据  
                                var returnData = {};
                                returnData.draw = data.draw;//这里直接自行返回了draw计数器,应该由后台返回
                                returnData.recordsTotal = result.total;//返回数据全部记录
                                returnData.recordsFiltered = result.total;//后台不实现过滤功能，每次查询均视作全部结果
                                returnData.data = result.rows;//返回的数据列表
                                callback(returnData);
                            }
                        });  
                    },
			    	"columns": [
				    	{ "data": "id" },
				    	{ "data": "rolesName" },
				    	{ "data": "rolesId" },
				    	{ "data": "createTime" },
				    	{ "data": "valid" , 
				    		render:function(date,full) {  
                                var content = null;  
                                if(date == 0) {  
                                    content = '不可用';  
                                } else {  
                                    content = '可用';  
                                }  
                                return content;  
                            }  
                        },  
                        {   bSortable : false,    
                            visible : true,   
                            data : "orgId",       
                            render : function(data, type, full) {    
                                var content = "<a href='coreOrganizationEdit.jsp?ticketId=" + data + "'>查看</a>";
                                return content;    
                            }     
                        } 
			    	]
			    });
			    // Apply the search
			    table.columns().every( function () {
			        var that = this;
			        $( 'input', this.footer() ).on( 'keyup change', function () {
			            if ( that.search() !== this.value ) {
			                that.search( this.value ).draw();
			            }
			        } );
			    } );
			} );
			function addRoles(){
				var data = $("#rolesDetailForm").serialize();
				$.post("${pageContext.request.contextPath}/role/rolesAdd.action",data,function(res){
					//获取返回结果，{"success":true}
					var re = eval("("+res+")");
					if(re.success){
						alert("提交成功！");
						//window.location.href='${pageContext.request.contextPath}/page/incidentManage.jsp';
					}else{
						alert("提交失败！请联系管理员！");
					};
				});
			}
	    </script>
	</body>
</html>